package com.gr.service.impl;

import com.gr.entity.Brand;
import com.gr.mapper.BrandMapper;
import com.gr.service.BrandService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class BrandServiceImpl implements BrandService {
    @Autowired
    private BrandMapper brandMapper;
    @Override
    public List<Brand> selectAllBrand() {
        return brandMapper.selectAllBrand();
    }

    @Override
    public List<Brand> selectAllBrandAndPhoneNum() {
        return brandMapper.selectAllBrandAndPhoneNum();
    }

    @Override
    public void addBrand(Brand brand) {
        brandMapper.addBrand(brand);
    }

    @Override
    public void deleteBrandById(Integer bid) {
        brandMapper.deleteBrandById(bid);
    }
}
